package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontPlayTypeMap table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontPlayTypeMap"
 */

public abstract class BaseAnteFrontPlayTypeMap  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontPlayTypeMap";
	public static String PROP_MAX_CODES = "maxCodes";
	public static String PROP_ANTE_PLAY_TYPE = "antePlayType";
	public static String PROP_PLAY_TYPE_NAME = "playTypeName";
	public static String PROP_FRONT_PLAY_TYPE = "frontPlayType";
	public static String PROP_SEQ_NO = "SeqNo";


	// constructors
	public BaseAnteFrontPlayTypeMap () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontPlayTypeMap (java.lang.Integer seqNo) {
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontPlayTypeMap (
		java.lang.Integer seqNo,
		java.lang.Integer antePlayType,
		java.lang.Integer frontPlayType,
		java.lang.String playTypeName) {

		this.setSeqNo(seqNo);
		this.setAntePlayType(antePlayType);
		this.setFrontPlayType(frontPlayType);
		this.setPlayTypeName(playTypeName);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer seqNo;

	// fields
	private java.lang.Integer antePlayType;
	private java.lang.Integer frontPlayType;
	private java.lang.String playTypeName;
	private java.lang.Integer maxCodes;
	//修改记录：开始 陈辉 新增一个接入系统玩法的属性
	private java.lang.String frontGameId;
    //修改记录:结束 陈辉 新增一个接入系统玩法的属性


	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="SeqNo"
     */
	public java.lang.Integer getSeqNo () {
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo (java.lang.Integer seqNo) {
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: AntePlayType
	 */
	public java.lang.Integer getAntePlayType () {
		return antePlayType;
	}

	/**
	 * Set the value related to the column: AntePlayType
	 * @param antePlayType the AntePlayType value
	 */
	public void setAntePlayType (java.lang.Integer antePlayType) {
		this.antePlayType = antePlayType;
	}



	/**
	 * Return the value associated with the column: FrontPlayType
	 */
	public java.lang.Integer getFrontPlayType () {
		return frontPlayType;
	}

	/**
	 * Set the value related to the column: FrontPlayType
	 * @param frontPlayType the FrontPlayType value
	 */
	public void setFrontPlayType (java.lang.Integer frontPlayType) {
		this.frontPlayType = frontPlayType;
	}



	/**
	 * Return the value associated with the column: PlayTypeName
	 */
	public java.lang.String getPlayTypeName () {
		return playTypeName;
	}

	/**
	 * Set the value related to the column: PlayTypeName
	 * @param playTypeName the PlayTypeName value
	 */
	public void setPlayTypeName (java.lang.String playTypeName) {
		this.playTypeName = playTypeName;
	}



	/**
	 * Return the value associated with the column: MaxCodes
	 */
	public java.lang.Integer getMaxCodes () {
		return maxCodes;
	}

	/**
	 * Set the value related to the column: MaxCodes
	 * @param maxCodes the MaxCodes value
	 */
	public void setMaxCodes (java.lang.Integer maxCodes) {
		this.maxCodes = maxCodes;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontPlayTypeMap)) return false;
		else {
			AnteFrontPlayTypeMap anteFrontPlayTypeMap = (AnteFrontPlayTypeMap) obj;
			if (null == this.getSeqNo() || null == anteFrontPlayTypeMap.getSeqNo()) return false;
			else return (this.getSeqNo().equals(anteFrontPlayTypeMap.getSeqNo()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getSeqNo()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}

	public java.lang.String getFrontGameId() {
		return frontGameId;
	}

	public void setFrontGameId(java.lang.String frontGameId) {
		this.frontGameId = frontGameId;
	}


}